package wo.bsys.service.impl;

import javax.transaction.Transactional;
import javax.transaction.Transactional.TxType;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import wo.bsys.po.OperationLog;
import wo.bsys.repository.OperationLogRepository;
import wo.bsys.service.LogService;

@Service
@Transactional(TxType.REQUIRES_NEW)
public class LogServiceImpl implements LogService {

	@Autowired
	private OperationLogRepository operationLogRepository;
	
	@Override
	public void save(OperationLog log) {
		operationLogRepository.save(log);
	}

}
